<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
$(function(){
	$("#folderTree").tree({
		animate:true,
		lines:true,
		url:"<c:url value='/docFolder/treeDate' />",
		queryParams:{"folderType":"<c:out value='${folderType}' />"},
		onSelect:function(node){
			inintShowDiv(node.id);
		},
		onLoadSuccess:function(node, data){
			$("#folderTree span[class^='tree-icon']").removeClass("tree-folder tree-folder-open tree-file");    	
			if($("#folderTree").tree("getSelected")==null){
				$("#folderTree").tree("select",$("#folderTree").tree("getRoot").target);
			}
		}
	});
});